package com.tencent.qf.user.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

@Data
@ApiModel("金币服务 - 金币发放")
public class IssueGoldRequest {

    @ApiModelProperty(value = "流水号", required = true)
    @NotEmpty(message = "流水号不能为空")
    @Size(max = 30,message = "serialNo（流水号）最大长度不得大于30")
    private String serialNo;

    @ApiModelProperty(value = "企鹅惠买用户uid", required = true)
    @NotEmpty(message = "用户uid不能为空")
    @Size(max = 30,message = "uid最大长度不得大于30" )
    private String uid;

    @ApiModelProperty(value = "金币值", required = true)
    @NotNull(message = "金币值不能为空")
    @Max(value = Integer.MAX_VALUE, message = "score（金币值）不得大于" + Integer.MAX_VALUE)
    @Min(value = 1,message = "score（金币值）必须大于0")
    private Integer score;

    @ApiModelProperty(value = "过期类型 1：无限 2：某一天过期 不上送则默认使用2")
    private String expireType;

    @ApiModelProperty(value = "多少天后过期，不上送则默认使用7")
    private Integer expireAfterDays;

    @ApiModelProperty(value = "来源 0-签到；1-完成任务；不上送则默认使用0")
    private String source;

    @ApiModelProperty(value = "应用id，用于区分哪个应用发的金币")
    private String appId;

}
